import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class demo5 {
    public static void main(String[] args) {
        List<String> MapList=new ArrayList<>();
        Collections.addAll(MapList,"张无忌-323","王思聪-222","吴亦凡-678","成立-213","穷求-666");
        MapList.stream()
                .map(s -> Integer.parseInt(s.split("-")[1]))
                .forEach(n->System.out.println(n));
    }
}
